package com.bingxue.edu.management.system.model.resp;

import com.mybatisflex.annotation.RelationManyToOne;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 组织详情信息
 *
 * @author panbo
 * @since 2024/07/12 17:24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "组织详情信息")
public class OrgDetailResp extends OrgResp {

    @Schema(description = "上级组织名称")
    @RelationManyToOne(
            selfField = "parentId",
            targetTable = "base_org",
            targetField = "id",
            valueField = "name"
    )
    private String parentOrgName;
}

